#include "main.h"
#include "intrins.h"
void initBsp(void)
{
	BUZ(0x00);
	LED(0XFF);
}
void Delay500ms()		//@12.000MHz
{
	unsigned char i, j, k;

	_nop_();
	_nop_();
	i = 23;
	j = 153;
	k = 245;
	do
	{
		do
		{
			while (--k);
		} while (--j);
	} while (--i);
}

void main()
{
	
	initBsp();
	while(1)
	{
		LED(0xfe);
		Delay500ms();
		LED(0xfd);
		Delay500ms();
		
		LED(0xfb);
		Delay500ms();
		LED(0xf7);
		Delay500ms();
		LED(0xef);
		Delay500ms();
		LED(0xdf);
		Delay500ms();
		LED(0xbf);
		Delay500ms();
		LED(0x7f);
		Delay500ms();
	}
}